﻿using Newtonsoft.Json;

namespace Easy.Services.Dtos
{
    public class ProfileDTO
    {
        /// <summary>
        /// 用户的城市信息
        /// </summary>
        [JsonProperty("city")]
        public string City { get; set; }

        /// <summary>
        /// 用户所在公司名
        /// </summary>
        [JsonProperty("company")]
        public string Company { get; set; }

        /// <summary>
        /// 用户所在公司id
        /// </summary>
        [JsonProperty("companyId")]
        public long? CompanyId { get; set; }

        /// <summary>
        /// 员工部门名字
        /// </summary>
        [JsonProperty("departmentName")]
        public string DepartmentName { get; set; }

        /// <summary>
        /// 用户手机号
        /// </summary>
        [JsonProperty("mobile")]
        public string Mobile { get; set; }

        /// <summary>
        /// 用户权限点对象
        /// </summary>
        [JsonProperty("roles")]
        public Roles Roles { get; set; }

        /// <summary>
        /// 用户头像
        /// </summary>
        [JsonProperty("staffPhoto")]
        public string StaffPhoto { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        [JsonProperty("userId")]
        public long UserId { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [JsonProperty("username")]
        public string UserName { get; set; }

    }

    public class Roles
    {
        /// 路由权限点数组, 每个字符串, 是用项目设置的, 标记英文字符串
        /// </summary>
        [JsonProperty("menus")]
        public string[] Menus { get; set; }

        /// <summary>
        /// 按钮权限点数组, 每个字符串, 是用项目设置的, 标记英文字符串
        /// </summary>
        [JsonProperty("points")]
        public string[] Points { get; set; }

    }
}
